<div class="article category">
	{if $newsletter_mode == "new"}
		<h1>{$TEXT_NEWSLETTER_SIGNUP_HEAD}</h1>
		<img src="/themes/default/img/newsletter_head.jpg" class="newsletterheadimage" alt="Newsletter" />
		<p>
			{if $languageCode == "de-DE"}
				Melde Dich jetzt für den Kammerath Network Newsletter an, erhalten Updates per E-Mail über neue Artikel, spannende Hintergrundinformationen zu den einzelnen Themen exklusiv per E-Mail und Möglichkeiten zum Austausch mit anderen Nutzern. Wenn Du Deine Mobilfunk-Rufnummer angibst, erhälst Du neue Artikel sogar per SMS. Der Newsletter ist selbstverständlich <strong>kostenfrei</strong>, genauso wie die Updates per SMS.
			{else}
				Sign up for the Kammerath Network newsletter now and receive updates about new articles and exclusive background information via e-mail. If you provide your mobile number you can also receive updates about articles via text messages at no additional charge. The newsletter as well as the text message updates are <strong>free of charge</strong>.
			{/if}
		</p>
	{/if}

	{if $newsletter_mode == "edit"}
		<h1>{$TEXT_NEWSLETTER_UPDATE_HEAD}</h1>
		<img src="/themes/default/img/newsletter_head.jpg" class="newsletterheadimage" alt="Newsletter" />
		<p>
			{if $languageCode == "de-DE"}
				Du kannst jetzt dein Newsletter-Profil aktualisieren, deinen Namen angeben, deine Anrede auswählen und deine Mobilfunkrufnummer angeben. Mit der Mobilfunkrufnummer kannst Du Updates zu neuen Artikeln sogar per SMS empfangen. Der Newsletter ist, genauso wie die Updates per SMS, selbstverständlich <strong>kostenfrei</strong>.
			{else}
				You can update your newsletter profile by adding your name, choosing your title and providing your mobile number. With the mobile number you can also receive updates about new articles via text messages. The newsletter as well as the text message updates are provided to you <strong>free of charge</strong>.
			{/if}
		</p>
	{/if}

	<div class="newslettersignup">
		<form id="newslettersignupform" method="post">
			<div class="newslettersignupdata">
				<div class="newslettersignuplabel">
					<label for="newslettergender">
						{$TEXT_NEWSLETTER_TITLE}
					</label>
				</div>
				<div class="newslettersignupfield">
					<select id="newslettergender" name="gender">
						{if $newsletter_gender == 0}
							<option value="0" selected="selected">{$TEXT_NEWSLETTER_TITLE_NOTPROVIDED}</option>
						{else}
							<option value="0">{$TEXT_NEWSLETTER_TITLE_NOTPROVIDED}</option>
						{/if}
						
						{if $newsletter_gender == 1}
							<option value="1" selected="selected">{$TEXT_NEWSLETTER_TITLE_MR}</option>
						{else}
							<option value="1">{$TEXT_NEWSLETTER_TITLE_MR}</option>
						{/if}

						{if $newsletter_gender == 2}
							<option value="2" selected="selected">{$TEXT_NEWSLETTER_TITLE_MS}</option>
						{else}
							<option value="2">{$TEXT_NEWSLETTER_TITLE_MS}</option>
						{/if}
					</select>
				</div>
			</div>

			{assign var="newsletterfullname" value=""}
			{if $loggedIn == true}
				{assign var="newsletterfullname" value=$user.realname}
			{/if}
			{if $newsletter_fullname != ""}
				{assign var="newsletterfullname" value=$newsletter_fullname}
			{/if}
			<div class="newslettersignupdata">
				<div class="newslettersignuplabel">
					<label for="newsletterfullname">
						{$TEXT_NEWSLETTER_FULLNAME}
					</label>
				</div>
				<div class="newslettersignupfield">
					<input type="text" id="newsletterfullname" name="fullname" value="{$newsletterfullname}" />
				</div>
			</div>

			<div class="newslettersignupdata">
				<div class="newslettersignuplabel">
					<label for="newsletteremailaddress">
						{$TEXT_NEWSLETTER_EMAILADDRESS}
					</label>
				</div>
				<div class="newslettersignupfield">
					<input type="text" id="newsletteremailaddress" name="emailaddress" value="{$newsletter_emailaddress}" />
				</div>
			</div>

			{assign var="newsletterphone" value=""}
			{if $newsletter_phonenumber != 0 && $newsletter_phonenumber != ""}
				{assign var="newsletterphone" value=$newsletter_phonenumber}
			{/if}
			<div class="newslettersignupdata">
				<div class="newslettersignuplabel">
					<label for="newsletterphonenumber">
						{$TEXT_NEWSLETTER_PHONENUMBER}
					</label>
				</div>
				<div class="newslettersignupfield">
					<input type="text" id="newsletterphonenumber" name="phonenumber" value="{$newsletterphone}" />
				</div>
			</div>

			<div id="newslettercaptcha" class="g-recaptcha" data-sitekey="6LfuwcISAAAAAOoGczsDzfeCqzKgqx3NcwsKzuPF"></div>
			<div style="clear:both;"></div>

			<div id="newslettersignupbutton" class="buttonlink">
				{if $newsletter_mode == "new"}
					{$TEXT_NEWSLETTER_SUBSCRIBENOWEBUTTON}
				{/if}

				{if $newsletter_mode == "edit"}
					{$TEXT_NEWSLETTER_UPDATEPROFILEBUTTON}
				{/if}
				 &raquo;
			</div>
			
			<div style="clear:both;"></div>
			<a href="#" id="newsletterunsubscribelink" class="newsletterunsubscribelink">
				{$TEXT_NEWSLETTER_UNSUBSCRIBELINK}
			</a>

		</form>
		<form id="newsletterunsubscribeform" method="post">
			<input type="hidden" id="unsubscribe_email" name="unsubscribe_email" value="" />
		</form>
		<div style="clear:both;"></div>
	</div>

	{if $languageCode == "de-DE"}
		Zur Abmeldung vom Newsletter findest Du in den einzelnen E-Mails einen Link, kannst jedoch auch im oben
		stehenden Formular Deine E-Mail Adresse eintragen und mit dem Link "Abmelden" die Abmeldung anfordern. Du erhälst dann letztmalig eine E-Mail in welcher Du die Abmeldung bestätigen musst, damit nicht einfach jeder E-Mail Adressen abmelden kann.
	{else}
		To unsubscribe form the newsletter, you can find an unsubscribe link in each e-mail. Apart from that link you can also enter your e-mail address above and click the "Unsubscribe" link to proceed with the unsubscription. You will receive the last e-mail providing you a link to the final unsubscription to ensure you are the owner of the e-mail address to avoid anybody unsubscribing any e-mail address.
	{/if}
</div>